/*
 * Copyright 2021 ThoughtWorks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import 'shared/mixins';
@import 'shared/common';
@import 'shared/header';
@import 'shared/alert';

@import "font-awesome-sprockets";

.no-buttons {
  padding-left:  30px;
  padding-right: 30px;
}

.my-notifications {
  font-size:   21px;
  font-weight: 300;
  margin:      0 0 2em;
  padding:     0;
}

.warning, .error {
  margin:        0 0 10px;
  padding:       15px;
  border-radius: $global-border-radius;
  background:    $page-body-background;

  font-size:   13px;
  line-height: 28px;

  .fa {
    position:     relative;
    top:          4px;
    font-size:    28px;
    line-height:  28px;
    margin-right: 10px;
  }
}

.warning .fa {
  color: #ffae00;
}

.error .fa {
  color: #f00;
}

.notification-content {
  display: flex;
  color:   $txt-color;

  .email-settings {
    flex:  0 0 auto;
    width: 15em;
  }

  .filter-controls {
    flex:         1 1 auto;
    border-left:  1px solid $border-color;
    padding-left: 20px;
  }

  h2, legend {
    text-transform: uppercase;
    font-size:      14px;
    font-weight:    500;
  }

  thead {
    background: $table-header-bg;
  }

  label {
    margin-right: 10px;
    display:      inline-block;

    span {
      display: block;
    }
  }

  label span, th {
    font-size:   13px;
    font-weight: bold;
  }

  // scss-lint:disable QualifyingElement
  input[type='checkbox'] ~ span {
    font-weight: normal;
    display:     inline;
  }

  select {
    min-width: 10em;
  }

  // scss-lint:disable QualifyingElement
  select, td, input[type='text'] {
    font-size: 13px;
  }

  // scss-lint:disable QualifyingElement
  input[type="submit"], input[type="reset"], input[type="button"], button {
    background:     $btn-bg;
    border-radius:  $global-border-radius;
    border:         0;
    color:          $btn-txt;
    font-size:      10px;
    font-weight:    bold;
    margin-right:   5px;
    padding:        6px 10px;
    text-transform: uppercase;
    cursor:         pointer;

    &:hover {
      background: $btn-bg-hover;
    }

    &.primary {
      background: $primary-btn-bg;

      &:hover {
        background: $primary-btn-bg-hover;
      }
    }
  }
}

.create-notification-filter {
  background:    $page-body-background;
  padding:       10px;
  margin-bottom: 1em;
}

.email-settings {
  label {
    display: block;
  }

  .value {
    font-weight: normal;
    color:       #808080;
  }

  // scss-lint:disable QualifyingElement
  input[type="text"], input[type="email"] {
    width: 200px;
  }
}
